<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="tKpGongdiList" sortName="gdCode" checkbox="true" pagination="true" fitColumns="false" title="工地" actionUrl="tKpGongdiController.do?datagrid" idField="id" fit="true" queryMode="group">

   <t:dgConfOpt operationCode="gdwangong" url="tKpGongdiController.do?dowangong&id={id}" urlclass="ace_button"  title="完工" message="确定" exp="by2#eq#建设中"/>
   <t:dgConfOpt operationCode="gdkaigong" url="tKpGongdiController.do?dokaigong&id={id}" urlclass="ace_button"  title="重新开工" message="确定" exp="by2#eq#完工"/>
   <t:dgCol title="客户名称"  field="by1" dictionary="t_kp_cus,cus_code,cus_name"  query="true"  queryMode="single"  width="60"></t:dgCol>

   <%--<t:dgDelOpt title="删除" url="tKpGongdiController.do?doDel&id={id}" urlclass="ace_button"  urlfont="fa-trash-o"/>--%>

   <t:dgCol title="所属部门"  field="sysOrgCode"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="所属公司"  field="sysCompanyCode"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="流程状态"  field="bpmStatus"  hidden="true"  queryMode="single"  dictionary="bpm_status"  width="120"></t:dgCol>

   <t:dgCol title="工地编码"  field="gdCode"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="承建单位"  field="gdName"  query="true"  queryMode="single"  width="220"></t:dgCol>
   <t:dgCol title="状态"   field="by2"  queryMode="single"  width="60"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="60"></t:dgCol>
   <t:dgCol title="项目名称"  field="gdDizhi"  query="true"  queryMode="single"  width="220"></t:dgCol>
   <t:dgCol title="联系人"  field="gdLianxiren"  query="true"  queryMode="single"  width="60"></t:dgCol>
   <t:dgCol title="税号"  field="gdShuihao"  query="true"  queryMode="single"  width="160"></t:dgCol>
   <t:dgCol title="开户行"  field="gdKaihuhang"  queryMode="single"  width="160"></t:dgCol>
   <t:dgCol title="账号"  field="gdZhanghao"  queryMode="single"  width="160"></t:dgCol>
   <%--<t:dgCol title="附件"  field="gdFujian"  queryMode="single"  downloadName="附件下载"  width="120"></t:dgCol>--%>
   <t:dgCol title="备注"  field="gdRemark"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建人名称"  field="createName"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建人"  field="createBy"    queryMode="single"  width="60"></t:dgCol>
   <t:dgCol title="创建日期"  field="createDate" hidden="true"  formatter="yyyy-MM-dd"    queryMode="single"  width="80"></t:dgCol>
   <t:dgCol title="更新人名称"  field="updateName"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新人"  field="updateBy"    queryMode="single"  width="60"></t:dgCol>
   <t:dgCol title="更新日期"  field="updateDate" hidden="true" formatter="yyyy-MM-dd"    queryMode="single"  width="80"></t:dgCol>
   <%--<t:dgCol title="备用1"  hidden="true" field="by1"  queryMode="single"  width="120"></t:dgCol>--%>

   <%--<t:dgCol title="备用3"  hidden="true" field="by3"  queryMode="single"  width="120"></t:dgCol>--%>
   <%--<t:dgCol title="备用4"  hidden="true"  field="by4"  queryMode="single"  width="120"></t:dgCol>--%>
   <%--<t:dgCol title="备用5"  hidden="true" field="by5"  queryMode="single"  width="120"></t:dgCol>--%>
   <%--&lt;%&ndash;<t:dgCol title="操作" field="opt" width="100"></t:dgCol>&ndash;%&gt;--%>
   <%--<t:dgDelOpt title="删除" url="tKpGongdiController.do?doDel&id={id}" urlclass="ace_button"  urlfont="fa-trash-o"/>--%>
   <t:dgToolBar operationCode="gdcreate" title="新建工地" icon="icon-add" url="tKpGongdiController.do?goAdd" width="780" height="400" funname="add"></t:dgToolBar>
   <t:dgToolBar  operationCode="gdedit" title="编辑" icon="icon-edit" url="tKpGongdiController.do?goUpdate" width="780" height="400" funname="update"></t:dgToolBar>
   <%--<t:dgToolBar title="批量删除"  icon="icon-remove" url="tKpGongdiController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>--%>
   <t:dgToolBar title="查看" icon="icon-search" url="tKpGongdiController.do?goUpdate" width="780" height="400" funname="detail"></t:dgToolBar>
   <%--<t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>--%>
   <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
   <%--<t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>--%>
  </t:datagrid>
  </div>
 </div>
 <script src = "webpage/com/yserp/kpmd/tKpGongdiList.js"></script>		
 <script type="text/javascript">
 $(document).ready(function(){
 });
 
   
 
//导入
function ImportXls() {
	openuploadwin('Excel导入', 'tKpGongdiController.do?upload', "tKpGongdiList");
}

//导出
function ExportXls() {
	JeecgExcelExport("tKpGongdiController.do?exportXls","tKpGongdiList");
}

//模板下载
function ExportXlsByT() {
	JeecgExcelExport("tKpGongdiController.do?exportXlsByT","tKpGongdiList");
}

 </script>